Optimal. Leaf size=55 \[ \frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a} \cosh (c+d x)}{\sqrt{b}}\right )}{\sqrt{a} d (a+b)}-\frac{\tanh ^{-1}(\cosh (c+d x))}{d (a+b)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.081834, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.19, Rules used = {4133, 481, 206, 205} \[ \frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a} \cosh (c+d x)}{\sqrt{b}}\right )}{\sqrt{a} d (a+b)}-\frac{\tanh ^{-1}(\cosh (c+d x))}{d (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4133
Rule 481
Rule 206
Rule 205
Rubi steps
\begin{align*} \int \frac{\text{csch}(c+d x)}{a+b \text{sech}^2(c+d x)} \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^2}{\left (1-x^2\right ) \left (b+a x^2\right )} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{(a+b) d}+\frac{b \operatorname{Subst}\left (\int \frac{1}{b+a x^2} \, dx,x,\cosh (c+d x)\right )}{(a+b) d}\\ &=\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sqrt{a} \cosh (c+d x)}{\sqrt{b}}\right )}{\sqrt{a} (a+b) d}-\frac{\tanh ^{-1}(\cosh (c+d x))}{(a+b) d}\\ \end{align*}
Mathematica [C] time = 0.848711, size = 232, normalized size = 4.22 \[ \frac{\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sinh (c) \tanh \left (\frac{d x}{2}\right ) \left (\sqrt{a}-i \sqrt{a+b} \sqrt{(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt{a}-i \sqrt{a+b} \sqrt{(\cosh (c)-\sinh (c))^2} \tanh \left (\frac{d x}{2}\right )\right )}{\sqrt{b}}\right )}{\sqrt{a}}+\frac{\sqrt{b} \tan ^{-1}\left (\frac{\sinh (c) \tanh \left (\frac{d x}{2}\right ) \left (\sqrt{a}+i \sqrt{a+b} \sqrt{(\cosh (c)-\sinh (c))^2}\right )+\cosh (c) \left (\sqrt{a}+i \sqrt{a+b} \sqrt{(\cosh (c)-\sinh (c))^2} \tanh \left (\frac{d x}{2}\right )\right )}{\sqrt{b}}\right )}{\sqrt{a}}+\log \left (\sinh \left (\frac{1}{2} (c+d x)\right )\right )-\log \left (\cosh \left (\frac{1}{2} (c+d x)\right )\right )}{d (a+b)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.051, size = 67, normalized size = 1.2 \begin{align*}{\frac{b}{d \left ( a+b \right ) }\arctan \left ({\frac{1}{4} \left ( 2\, \left ( a+b \right ) \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+2\,a-2\,b \right ){\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{1}{d \left ( a+b \right ) }\ln \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{\log \left ({\left (e^{\left (d x + c\right )} + 1\right )} e^{\left (-c\right )}\right )}{a d + b d} + \frac{\log \left ({\left (e^{\left (d x + c\right )} - 1\right )} e^{\left (-c\right )}\right )}{a d + b d} + 2 \, \int \frac{b e^{\left (3 \, d x + 3 \, c\right )} - b e^{\left (d x + c\right )}}{a^{2} + a b +{\left (a^{2} e^{\left (4 \, c\right )} + a b e^{\left (4 \, c\right )}\right )} e^{\left (4 \, d x\right )} + 2 \,{\left (a^{2} e^{\left (2 \, c\right )} + 3 \, a b e^{\left (2 \, c\right )} + 2 \, b^{2} e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.88902, size = 1461, normalized size = 26.56 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{csch}{\left (c + d x \right )}}{a + b \operatorname{sech}^{2}{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]